<?php

namespace app\admin\validate\matketing;

use think\Validate;

class SaleDiscount extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'money' => 'require|float|gt:0',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'money.float' => '金额必须数字',
        'money.gt' => '金额必须大于0',
        'money.require' => '金额不能为空',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['money'],
        'edit' => ['money'],
    ];
    
}
